﻿using System;
using System.Collections.Generic;

namespace Caramel.Entities.Scaffolding.Metadata
{
	[Serializable()]
	public class Relation
	{
		public Relation()
		{
			this.ChildColumns = new List<IColumn>();
		}

		public string Name { get; set; }

		public Table Parent { get; set; }

		public Table Child { get; set; }

		public IList<IColumn> ChildColumns { get; set; }

		public override string ToString()
		{
			return this.Name;
		}
	}
}
